name: Gradle Validate
on:
  push:
    branches:
      - master
    paths:
      - 'gradle/wrapper/gradle-wrapper.jar'
  pull_request:
    paths:
      - 'gradle/wrapper/gradle-wrapper.jar'
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  validate-gradle-wrapper:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-java@v3
        with:
          distribution: 'zulu'
          java-version: 17
      - uses: gradle/wrapper-validation-action@v1.1.0
